
import React, { Component, Fragment, useState } from "react";

function Demo() {
    return (
        <div>
            1111
        </div>
    )
}

// 高阶函数
function AppWrapper(Component) {

    return function (props) {
        return (
            <Fragment>
                <div>装饰器头</div>
                    <Component ></Component>
                <div>装饰器尾</div>
            </Fragment>
        )
    }
}
export default AppWrapper(Demo)